{% include file="index.header.tpl.php" %}
{% include file="index.left.tpl.php" %}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="post">	
                <div class="box-header with-border">
                    <span class="fa fa-pencil" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">人事变动</p>
                </div>
                <div class="box-body">
				   <div class="form-group">
						  <label for="inputPassword3" class="col-md-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
							   编号：
						  </label>
						  <div class="input-group col-md-6 col-sm-12 col-xs-12">
							   <input type="text" name="staff_number" class="form-control" value="{%$staff_data.staff_number%}">
						  </div> 
				    </div>
					<div class="form-group">
						  <label for="inputPassword3" class="col-md-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
							   姓名：
						  </label>
						  <div class="input-group col-md-6 col-sm-12 col-xs-12">
							   <input type="text" name="staff_name" class="form-control" value="{%$staff_data.staff_name%}">
						  </div> 
				    </div>
					<div class="form-group">
						  <label for="inputPassword3" class="col-md-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
							   变动事项：
						  </label>
						  <div class="input-group col-md-6 col-sm-12 col-xs-12">
							   <input type="text" name="personnel_variation" class="form-control" value="">
						  </div> 
				    </div>
					<div class="form-group">
						  <label for="inputPassword3" class="col-md-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
							   日期：
						  </label>
						  <div class="input-group col-md-6 col-sm-12 col-xs-12">
							       <input type="text" name="start_time" class="form-control" value="" id="datepicker"/>
                                   <div class="input-group-addon">
                                      <i class="fa fa-calendar"></i>
                                  </div>
						  </div> 
				    </div>
					<div class="form-group">
						  <label for="inputPassword3" class="col-md-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
							   源单位：
						  </label>
						  <div class="input-group col-md-6 col-sm-12 col-xs-12">
							   <input type="text" name="personnel_from" class="form-control" value="">
						  </div> 
				    </div>
					<div class="form-group">
						  <label for="inputPassword3" class="col-md-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
							   目的单位：
						  </label>
						  <div class="input-group col-md-6 col-sm-12 col-xs-12">
							   <input type="text" name="personnel_to" class="form-control" value="">
						  </div> 
				    </div>
					<div class="form-group">
						  <label for="inputPassword3" class="col-md-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
							   在岗信息：
						  </label>
						  <div class="input-group col-md-6 col-sm-12 col-xs-12">
							   <select class="form-control" id="s1" name="staff_sign" onchange="a()">
								{%if $personnel_type eq 1%}
									    <option value="0" >在职</option>
	                                    <option value="1" >离职</option>
                                        <option value="2" >退休</option>
                                        <option value="3" >借出</option>
                                        <option value="4" >调回</option>
								   {%else%}
								   <option value="5" >解聘</option>
								   <option value="6" >聘用</option>
								   {%/if%}
                              </select> 
						  </div> 
				    </div>
					<div class="form-group">
						  <label for="inputPassword3" class="col-md-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
							   备注：
						  </label>
						  <div class="input-group col-md-6 col-sm-12 col-xs-12">
							   <textarea class="form-control" name="personnel_remark" rows="3"></textarea>
						  </div> 
				    </div>
				</div><!--box-body --> 
                <div class="box-footer text-center">
                     <button class="btn btn-primary" type="submit">保 存 信 息</button>
                 </div>
             </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
  
 {% include file="index.footer.tpl.php" %}
 
<script>
  $(function() {
    $( "#datepicker" ).datepicker({
      showOtherMonths: true,
      selectOtherMonths: true,
	  changeMonth: true,
      changeYear: true
    });
	$( "#datepicker1" ).datepicker({
      showOtherMonths: true,
      selectOtherMonths: true,
	  changeMonth: true,
      changeYear: true
    });
  });
</script>